package com.mm.serivce.note;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mm.domain.note.DNote;

import java.util.List;

/**
 * 描述:
 *
 * @author: yanglin
 * @Date: 2021-05-12-13:47
 * @Version: 1.0
 */
public interface DNoteService extends IService<DNote> {

    /**
     * 查询笔记分页
     *
     * @param page
     * @param limit
     * @param text
     * @param startTime
     * @param endTime
     * @return
     */
    Page<DNote> queryMyNoteList(Integer page, Integer limit, String text, long startTime, long endTime);

    /**
     * 逻辑删除
     *
     * @param nId
     * @return
     */
    boolean remove(Integer nId);

    /**
     * 获取当天的日报
     *
     * @return
     */
    String queryMyNoteWeek();

    /**
     * 查询记录
     *
     * @return
     */
    List<DNote> queryMyNote(DateTime startTime, DateTime endTime);
}
